package com.zrz.resp;

import com.fasterxml.jackson.annotation.JsonProperty;

public class WechatTokenResp {
    private Integer code;
    @JsonProperty("errmsg")
    private String message;
    @JsonProperty("access_token")
    private String accessToken;
    @JsonProperty("expires_in")
    private Long expiresIn;

    public WechatTokenResp() {
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public String getAccessToken() {
        return this.accessToken;
    }

    public Long getExpiresIn() {
        return this.expiresIn;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public void setExpiresIn(Long expiresIn) {
        this.expiresIn = expiresIn;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof WechatTokenResp)) {
            return false;
        } else {
            WechatTokenResp other = (WechatTokenResp)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label59: {
                    Object this$code = this.getCode();
                    Object other$code = other.getCode();
                    if (this$code == null) {
                        if (other$code == null) {
                            break label59;
                        }
                    } else if (this$code.equals(other$code)) {
                        break label59;
                    }

                    return false;
                }

                Object this$message = this.getMessage();
                Object other$message = other.getMessage();
                if (this$message == null) {
                    if (other$message != null) {
                        return false;
                    }
                } else if (!this$message.equals(other$message)) {
                    return false;
                }

                Object this$accessToken = this.getAccessToken();
                Object other$accessToken = other.getAccessToken();
                if (this$accessToken == null) {
                    if (other$accessToken != null) {
                        return false;
                    }
                } else if (!this$accessToken.equals(other$accessToken)) {
                    return false;
                }

                Object this$expiresIn = this.getExpiresIn();
                Object other$expiresIn = other.getExpiresIn();
                if (this$expiresIn == null) {
                    if (other$expiresIn != null) {
                        return false;
                    }
                } else if (!this$expiresIn.equals(other$expiresIn)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof WechatTokenResp;
    }

    public String toString() {
        return "WechatTokenResp(code=" + this.getCode() + ", message=" + this.getMessage() + ", accessToken=" + this.getAccessToken() + ", expiresIn=" + this.getExpiresIn() + ")";
    }

}
